import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;

public class Colleaction {
    public static void main(String[] args) {
        Collection<String> coll = new ArrayList<>();
        coll.add("aaa");
        coll.add("bbb");
        System.out.println(coll);
        coll.remove("aaa");
        System.out.println(coll);
       /* coll.clear();
        System.out.println(coll);*/
         Collection<String> coil = new ArrayList<>();
         coil.add("aaa");
         coil.add("bbb");
         coil.add("ccc");
         Iterator<String> it = list.iterator();
         while(it.hasNext()){
             String str = it.next();

             System.out.println(str);
         }

        Collection<String> coli = new ArrayList<>();
         coli.add("aaa");
        for (String s : coli) {
            System.out.println(s);
        }
    }
}
